<script type="text/html" template lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-CoreCmsWeChatPayConfig-detailsForm" id="LAY-app-CoreCmsWeChatPayConfig-detailsForm">
        <colgroup>
            <col width="200">
            <col>
        </colgroup>
        <tbody>

            <tr>
                <td>
                    <label for="id">类型</label>
                </td>
                <td>
                    {{ d.params.data.appType || '' }}
                </td>
            </tr>
            <tr>
                <td>
                    <label for="appId">应用号</label>
                </td>
                <td>
                    {{ d.params.data.appId || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="appId">应用AppId</label>
                </td>
                <td>
                    {{ d.params.data.appId || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="mchId">商户号</label>
                </td>
                <td>
                    {{ d.params.data.mchId || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="apiKey">API秘钥</label>
                </td>
                <td>
                    {{ d.params.data.apiKey || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="apiV3Key">APIv3密钥</label>
                </td>
                <td>
                    {{ d.params.data.apiV3Key || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="certificate">p12证书base64</label>
                </td>
                <td>
                    {{ d.params.data.certificate || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="rsaPublicKey">RSA公钥</label>
                </td>
                <td>
                    {{ d.params.data.rsaPublicKey || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="subAppId">子商户应用号</label>
                </td>
                <td>
                    {{ d.params.data.subAppId || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="subMchId">子商户号</label>
                </td>
                <td>
                    {{ d.params.data.subMchId || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="notifyUrl">支付回调通知</label>
                </td>
                <td>
                    {{ d.params.data.notifyUrl || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="refundUrl">退款回调</label>
                </td>
                <td>
                    {{ d.params.data.refundUrl || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="jumpUrl">跳转地址</label>
                </td>
                <td>
                    {{ d.params.data.jumpUrl || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="isEnable">是否开启</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isEnable" value="{{d.params.data.isEnable}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isEnable" {{ d.params.data.isEnable ? 'checked' : '' }}>
                </td>
            </tr>

            <tr>
                <td>
                    <label for="isDefault">是否本类默认</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isDefault" value="{{d.params.data.isDefault}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isDefault" {{ d.params.data.isDefault ? 'checked' : '' }}>
                </td>
            </tr>

        </tbody>
    </table>
</script>
<script>
    var debug = layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }

        layui.use(['admin', 'form', 'coreHelper'], function () {
            var $ = layui.$
                , setter = layui.setter
                , admin = layui.admin
                , coreHelper = layui.coreHelper
                , form = layui.form;
            form.render(null, 'LAY-app-CoreCmsWeChatPayConfig-detailsForm');
        });
    };
</script>